<title>用户管理</title>
<meta name="menu" content="fund"/>
<meta name="menuItem" content="fundcount"/>
<script type='text/javascript' src='<@c.url value='/js/My97DatePicker/WdatePicker.js' />'></script>
<form name="queryForm" action="${base}/admin/fund/fund!countFund.action" method="post">
      	从<input id="dateStar" type="text" name="dateStar" onclick="WdatePicker({el:$('dateStar'),startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" value="<#if dateStar??>${dateStar?string('yyyy-MM-dd HH:mm')}</#if>"/>
			    	<img onclick="WdatePicker({el:$('dateStar'),startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" src="${base}/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" style="cursor:pointer;" />
				           到<input id="dateEnd" type="text" name="dateEnd" onclick="WdatePicker({el:$('dateEnd'),startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" value="<#if dateEnd??>${dateEnd?string('yyyy-MM-dd HH:mm')}</#if>"/>
			    	<img onclick="WdatePicker({el:$('dateEnd'),startDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd HH:mm'})" src="${base}/js/My97DatePicker/skin/datePicker.gif" width="16" height="22" align="absmiddle" style="cursor:pointer;" />
				  &nbsp;&nbsp;&nbsp;  格式：yyyy-MM-dd HH:mm
      <a href="#" onclick="document.forms['queryForm'].submit();return false;"><img src="${base}/styles/adminDefault/images/ico_search.gif" border="0" align="absmiddle"/></a>
</form>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#DCDCDC">
    <tr class="trlbrown" height="25">
      <td>时间</td>
	  <td>类型</td>
      <td>支出</td>
      <td>金额</td>
    </tr>
    <#assign outResultCount =0 />
    <#if outResultList??&& (outResultList![])?size gt 0>
    	<#list outResultList as fundForm>
    	<#if fundForm_index%2==0><#assign trColor="trw" /><#else><#assign trColor="trgray" /></#if>
    	<tr class="${trColor}" onmouseover="this.className='trlbro'" onmouseout="this.className='${trColor}'">
    	  <td><#if dateStar??&&dateEnd??>${dateStar?string('yyyy-MM-dd HH:mm')}~${dateEnd?string('yyyy-MM-dd HH:mm')}</#if></td>
	      <td><#if fundForm??&&fundForm.type??>${fundForm.type.typeName!}</#if></td>
	      <td>支出</td>
	      <td>${fundForm.money!}</td>
		</tr>
		<#assign outResultCount=outResultCount+fundForm.money />
    	</#list>
    	<tr class="trlbro" onmouseover="this.className='trlbro'" onmouseout="this.className='${trColor}'">
    	  <td>合计</td>
	      <td>-</td>
	      <td>-</td>
	      <td>${outResultCount!}</td>
		</tr>
    </#if>
    <tr class="trlbrown" height="25">
      <td>时间</td>
	  <td>类型</td>
      <td>收入</td>
      <td>金额</td>
    </tr>
   <#assign inResultCount =0 />
    <#if inResultList??&& (inResultList![])?size gt 0>
    	<#list inResultList as fundForm>
    	<#if fundForm_index%2==0><#assign trColor="trw" /><#else><#assign trColor="trgray" /></#if>
    	<tr class="${trColor}" onmouseover="this.className='trlbro'" onmouseout="this.className='${trColor}'">
    	  <td><#if dateStar??&&dateEnd??>${dateStar?string('yyyy-MM-dd HH:mm')}~${dateEnd?string('yyyy-MM-dd HH:mm')}</#if></td>
	      <td><#if fundForm??&&fundForm.type??>${fundForm.type.typeName!}</#if></td>
	      <td>收入</td>
	      <td>${fundForm.money!}</td>
	      <#if fundForm.money??><#assign inResultCount=inResultCount+fundForm.money /></#if>
		</tr>
    	</#list>
    	<tr class="trlbro" onmouseover="this.className='trlbro'" onmouseout="this.className='${trColor}'">
    	  <td>合计</td>
	      <td>-</td>
	      <td>-</td>
	      <td>${inResultCount!}</td>
		</tr>
    </#if>
  </table>